package com.ericpol.pageobject;

import org.openqa.selenium.WebDriver;

public class POMainPage extends POPage {
	
	public POMainPage (WebDriver driver){
		super(driver);
	}

	public boolean isOpen(){
		boolean result = driver.getPageSource().contains("Logout");
		//drugi sposob a)
//		String result = driver.findElement(By.linkText("Logout")).getText();
//		boolean res;
//		if (result == "Logout") {
//			res = true;
//		} else {
//			res = false;
//		}
		//drugi sposob  b)
		//return result
		return result;
	}
}
